package com.hand.pp.config;/**
 * @author Estelle@앙수청
 * @date 2019/7/17 10:08
 */

import com.hand.pp.filter.PerssionFilter;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 *  @author Estelle@앙수청
 *  @date 2019/7/17 10:08
 */
@Configuration
public class FilterConfiguration {

    @Bean
    public FilterRegistrationBean filterRegistrationBean(){
        FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean();
        filterRegistrationBean.setFilter(new PerssionFilter());
        filterRegistrationBean.addUrlPatterns("/");
        return filterRegistrationBean;
    }
}
